home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / dvxtec.zip / DOS2AIX.TEC < prev    next >
Text File  |  1992-03-31  |  4KB  |  109 lines

  1. ID:F3 Porting DOS fonts to the AIX X Window System
  2. Quarterdeck Technical Note #413
  3. by Kris Williams & Mark Welinder
  4.  
  5. How to port DOS fonts to the AIX X Window System
  6.  
  7. This document explains the procedures for porting the DESQview/X DOS
  8. fonts over to your AIX workstation.  If you are or will be running 
  9. DOS applications to be displayed on your AIX workstation, it 
  10. would be more aesthetically correct to use the fixed DOS fonts 
  11. which where provided with DESQview/X.
  12.  
  13. To follow the steps covered in this document you will first need to have
  14. installed DESQview/X, and configured your TCP/IP networking software on
  15. both the AIX workstation, and the DOS DESQview/X PC.  It is only
  16. necessary to copy the font files to the AIX workstation once.
  17.  
  18. THE PROCEDURE 
  19.  
  20. Is the X Window System configured on your AIX workstation?  You
  21. will need to determine whether or not the X Window System is installed
  22. on your AIX workstation before continuing with this document.
  23.  
  24. Have you installed DESQview/X on your DOS PC?  It is necessary to have
  25. DESQview/X installed on the DOS machine before continuing with this
  26. document.  You may determine this by looking in the \DVX subdirectory
  27. for the file DESQVIEW.DVO. If this file exists, DESQview/X is installed,
  28. and you may continue.  If not you will need to reference you DESQview/X
  29. installation guide for before continuing.
  30.  
  31. CONVERTING THE FONT DESCRIPTION FILES
  32.  
  33. Before moving the PC fonts over to the AIX workstation, you will
  34. need to convert the .bdf font files to .snf font files.  This would be
  35. done by typeing the following series of commands:
  36.  
  37.    cd \DVX\BDF <─┘
  38.    ..\bdftosnf pc8x8.bdf > pc8x8.snf
  39.    ..\bdftosnf pc8x14.bdf > pc8x14.snf
  40.    ..\bdftosnf pc8x16.bdf > pc8x16.snf
  41.  
  42. TRANSFERING THE FONT DEFINITION FILES
  43.  
  44. If you haven't yet configured FTP's PCTCP software you'll need to
  45. reference the green PCTCP manual before continuing with this document.
  46.  
  47. You will need to switch to the \FTP subdirectory on the DOS machine
  48. where the PCTCP software is configured.  This may be done with the
  49. following command:
  50.  
  51.     C:\> cd \ftp <─┘
  52.  
  53. Then we'll use the FTP (File Transfere Protocol) utility to move the
  54. font description files up to the AIX workstation.  This can be
  55. done with the following commands:
  56.  
  57.     C:\FTP> ftp <─┘
  58.     ftp> login: <username> <─┘
  59.     ftp> password: <password> <─┘
  60.   ftp> mput \DVX\BDF\pc*.snf <─┘
  61.     ftp> quit <─┘
  62.  
  63. In the above command <username> would be your username on the AIX
  64. workstation, and <password> is the password required for <username>
  65. to successfully log on to the AIX workstation.  After these commands 
  66. are performed, the font description files are ready to be aliased
  67. and used by the X Window System on the AIX workstation.
  68.  
  69. ALIASING THE FONTS
  70.  
  71. AIX's X Window System lets you assign aliases to fonts so that
  72. you can refer to a font without having to type it's full name. 
  73. To create a font alias, follow the following steps:
  74.  
  75. 1.  Log into the system as root.
  76.  
  77. 2.  Edit the file named fonts.list.  Usually, this directory is called
  78.     either 75dpi, 100dpi or misc in the /usr/lib/X11/fonts subdirectory.
  79.     This directory must be in the search path.
  80.  
  81. 3.  Edit fonts.list so that it contains at least one line with the
  82.     following format:
  83.  
  84.     aliasname   fontname
  85.  
  86.     In this line, aliasname is the name that is used to reference
  87.     the font, and fontname is the fullname of the font.  So, to add the
  88.     pc fonts to this font directory, you will need to append the
  89.     following lines to the fonts.list file:
  90.  
  91. pc8x8.snf   -quarterdeck-fixed-bold-r-normal--8-80-75-75-c-80-iso8859-1
  92. pc8x14.snf  -quarterdeck-fixed-bold-r-normal--14-140-75-75-c-80-iso8859-1
  93. pc8x16.snf  -quarterdeck-fixed-bold-r-normal--16-160-75-75-c-80-iso8859-1
  94.  
  95. 4.  If you performed step 3 from an X session, you must reset the
  96.     server's font search path.  You can do this either by stopping the
  97.     AIX X Window System and then restarting it, or by entering the
  98.     following command from and odtterm window:
  99.  
  100.     xset fp rehash
  101.  
  102.     If you performed step 3 directly from the operating system command line
  103.     (and the X Window System was not running), there is no need to reset the
  104.     server. The changes that you made to the fonts.list file are
  105.     incorporated automatically the next time you start the X Window System.
  106.  
  107. Copyright (C) 1991 by Quarterdeck Office Systems
  108. * * *    E N D   O F   F I L E    * * *
  109.